﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data;
using IQKS.AWP.DataAccessLayer;
using IQKS.AWP.BusinessObject;


namespace IQKS.AWP.BusinessAccessLayer
{
    public class CandidateAllocateAssessorBAL
    {
        public object SetCandidateAllocateAssessor(CandidateAllocateAssessorBO param)
        {
            try
            {
                return new CandidateAllocateAssessorDAL().SetCandidateAllocateAssessor(param);
            }
            catch (Exception ex)
            {
                throw new ApplicationException(ex.Message);
            }
        }
        public object SetCandidateAllocatedAssessor(CandidateAllocateAssessorBO param, string EncryptedCandidateID,string ApproveStatusID,string RejectStatusID)
        {
            try
            {
                return new CandidateAllocateAssessorDAL().SetCandidateAllocatedAssessor(param, EncryptedCandidateID,ApproveStatusID,RejectStatusID);
            }
            catch (Exception ex)
            {
                throw new ApplicationException(ex.Message);
            }
        }

        public object SetAssessorDocument(params object[] param)
        {
            try
            {
                return new CandidateAllocateAssessorDAL().SetAssessorDocument(param);
            }
            catch (Exception ex)
            {
                throw new ApplicationException(ex.Message);
            }
        }

        public DataSet GetAssessorDocument(params object[] param)
        {
            try
            {
                return new CandidateAllocateAssessorDAL().GetAssessorDocument(param);
            }
            catch (Exception ex)
            {
                throw new ApplicationException(ex.Message);
            }
        }

        public object SetCandidateAllocatedToCandidate(CandidateAllocateAssessorBO param)
        {
            try
            {
                return new CandidateAllocateAssessorDAL().SetCandidateAllocatedToCandidate(param);
            }
            catch (Exception ex)
            {
                throw new ApplicationException(ex.Message);
            }
        }

        public DataSet GetAllAssessor()
        {
            DataSet objDs;
            try
            {
                objDs = new CandidateAllocateAssessorDAL().GetAllAssessor();

            }
            catch (Exception exception)
            {
                throw new ApplicationException(exception.Message);
            }
            return objDs;
        }


        public DataSet GetPartnerAssessor(params object[] param)
        {
            DataSet objDs;
            try
            {
                objDs = new CandidateAllocateAssessorDAL().GetPartnerAssessor(param);

            }
            catch (Exception exception)
            {
                throw new ApplicationException(exception.Message);
            }
            return objDs;
        }

    }
}
